#!/usr/bin/python
# coding=utf-8

import os, sys, string, re, httplib

class CSDNBlog:
	def __init__(self):
		pass

	def run(self):
		conn = httplib.HTTPConnection('blog.csdn.net')
		conn.request('GET','/kongxx')
		res = conn.getresponse()
		content = res.read()
		m = re.search('<li>排名：<span>(.*)</span></li>', content)
		print m.group(1)

	def get_url_content(self, url):
		f = urllib.urlopen(url)
		return f.read()

t = CSDNBlog()
t.run()